<div class="col-xs-12 dataTables_wrapper">
    <table class="table table-striped table-bordered table-hover" id="sample-table-1">
        <thead>
        <tr>
            <th>任务类型</th>
            <th>状态</th>
            <th>处理器</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for item in data.items %}
            <tr>
                <td>
                    {% if item.type == 0 %}一次性常规{% else %}周期任务{% endif %}
                </td>
                <td>
                    {% if item.type == 0 %}正常{% else %}错误{% endif %}
                </td>
                <td>
                    {% if taskList[item.task]['name'] is defined %}{{ taskList[item.task]['name'] }}{% endif %}
                </td>
                <td>{{ date('Y-m-d H:i:s',item.created) }}</td>
                <td>
                    <a href="{{ url(['for':'adminQueueDelete','id':item.getId()]) }}"
                       class="btn btn-xs btn-danger ajax-load-link" data-target="#main">删除</a>
                    {% if item.type > 0 %}
                        <a href="{{ url(['for':'adminQueueResumed','id':item.getId()]) }}"
                           class="btn btn-xs btn-success ajax-load-link"
                           hrefbox="#main-content">恢复状态</a>
                    {% endif %}
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
    <div class="space-4"></div>
    <div class="space-8"></div>
    {{ partial("Themes/AdminLTE/templates/paginator") }}
</div>